<div id="receplanShowContent"></div>
<script type='text/html' id='receplanContent'>
    <form class='layui-form layui-form-pane kaige-body-form' style='padding: 5px;' lay-filter='receplan_form_lay_filter'
          id="receplan_form_lay">
        {{# if(d.id){ }}
        <input type='hidden' name='id' value='{{ d.id }}'/>
        {{# } }}
        <input type='hidden' name='contract_id' value='{{ d.contract_id }}'/>
        <input type='hidden' name='customer_id' value='{{ d.customer_id }}'/>
        <div class='layui-form-item'>
            <label class='layui-form-label'>期数</label>
            <div class='layui-input-block'>
                <input name='num' value='{{ d.num || "" }}' class='layui-input' type='number'
                lay-verify='required|number'>
            </div>
        </div>
        <div class='layui-form-item'>
            <label class='layui-form-label'>回款金额</label>
            <div class='layui-input-inline'>
                <input id='money' name='money' value='{{ d.money || "" }}' class='layui-input' type='text' readonly>
            </div>
            <label class='layui-form-label'>回款方式</label>
            <div class='layui-input-inline'>
                <select name='return_type_id' lay-verify='required'>
                    {{# lay.each(pagedict.return_type,function(index,item){
                    if(index == ''){
                    top.layer.msg('系统字典->跟进类型未配置完成，值不能为空');
                    }
                    }}
                    <option value='{{ index }}' {{ d.level== index ?
                    'selected' :'' }}>{{ item }}</option>{{# }) }}
                </select>
            </div>

        </div>
        <div class='layui-form-item'>
            <label class='layui-form-label'>回款日期</label>
            <div class='layui-input-inline'>
                <input id='return_date' name='return_date' value='{{ d.return_date || '' }}' class='layui-input'
                type='text'>
            </div>
            <label class='layui-form-label'>提醒</label>
            <div class='layui-input-inline'>
                <input name='remind' value='{{ d.remind || "0" }}' class='layui-input' type='number'
                placeholder='提前几天提醒'>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input name="remarks" value="{{ d.remarks || '' }}" class="layui-input" type="text">
            </div>
        </div>
        <div class='layui-form-item layui-hide'>
            <button class='layui-hide' lay-submit="" id='receplan_form_btn_save' lay-filter='receplan_form_btn_save'>
                保存数据
            </button>
        </div>
    </form>
</script>